Mini version (within the los-mini folder)
Mini version cpp script(in the example/c++ folder)
Operation Instructions
- Add the bin file to the system environment and enter the los-mini folder.
- Perform clang compilation:
clang -c test.c
Withlosld -o test test.o
, generate the test.los file and convert the test.los file to the test[] array. - In the los-mini folder, type the make command to generate the los.exe file. Run the viewing result
api Description:
1.mini version los, only the following api: please see the comments in the los.h file for specific use, and refer to test.c main.c
Uint32_t los_quit(losc_t *lp);
Void los_arg_clear(losc_t *lp);
Uint32_t los_push_arg(losc_t *lp, uint32_t arg);
Uint32_t los_call_addr(losc_t *lp, uint32_t addr);
Void los_set_function(fun_os f);
Uint32_t los_app_first(uint8_t *addr);
Migration Instructions
- Need to implement the memory management function of los.h
#define lpram_malloc malloc
#define lpram_free free